package com.dinpay.plugin.d;

import java.io.ByteArrayOutputStream;
import javax.crypto.Cipher;

public final class g
{
  public static byte[] a(byte[] paramArrayOfByte, Cipher paramCipher, int paramInt)
  {
    int i = paramArrayOfByte.length;
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    int j = 0;
    int k = 0;
    if (i - k > 0)
    {
      if (i - k > paramInt);
      for (byte[] arrayOfByte2 = paramCipher.doFinal(paramArrayOfByte, k, paramInt); ; arrayOfByte2 = paramCipher.doFinal(paramArrayOfByte, k, i - k))
      {
        localByteArrayOutputStream.write(arrayOfByte2, 0, arrayOfByte2.length);
        int m = j + 1;
        k = m * paramInt;
        j = m;
        break;
      }
    }
    byte[] arrayOfByte1 = localByteArrayOutputStream.toByteArray();
    localByteArrayOutputStream.close();
    return arrayOfByte1;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.d.g
 * JD-Core Version:    0.6.2
 */